<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<?php 
		$this->headTitle('Admin', 'PREPEND');
		echo $this->headMeta();
		echo $this->headTitle();
		echo $this->headLink()->prependStylesheet($this->baseUrl() . '/css/admin.css');
	?>
	</head>
	
	<body>
	<div id="wraper">
		<!--  <div id="header">
			<h1>bro</h1>
		</div>-->
		<div id="menu">
			<?php echo $this->action('menu', 'layout'); ?>
		</div>
		<div id="content">
			<div id="leftblock">
				<h2>Right block header</h2>
				<ul>
					<li>
						<a href="<?php echo $this->url(array(), 'aeventa', true);?>">+</a>
						&nbsp;
						<a href="<?php echo $this->url(array(), 'aevent', true);?>">Events</a>
					</li>
					<li>
						<a href="<?php echo $this->url(array(), 'abeta', true);?>">+</a>
						&nbsp;
						<a href="<?php echo $this->url(array(), 'abet', true);?>">Bets</a>
					</li>
					<li>
						<a href="<?php echo $this->url(array('action' => 'add'), 'at', true);?>">+</a>
						&nbsp;
						<a href="<?php echo $this->url(array(), 'at', true);?>">Tournaments</a>
					</li>
					<li>
						<a href="<?php echo $this->url(array('action' => 'add'), 'ateam', true);?>">+</a>
						&nbsp;
						<a href="<?php echo $this->url(array(), 'ateam', true);?>">Teams</a>
					</li>		
					<li>
						<a href="<?php echo $this->url(array('action' => 'add'), 'auser', true);?>">+</a>
						&nbsp;
						<a href="<?php echo $this->url(array(), 'auser', true);?>">Users</a>
					</li>					
				</ul>
				    <?php 
				    	$loginfo = $this->loggedInUser();
				    	if(isset($loginfo['profile'])){
				    		foreach($loginfo['profile'] as $bet)
				    			echo $bet;
				    	}
				    	echo $loginfo['loginout'];
				    ?>
				
			</div>
			<div id="rightblock">
				<h1><?php echo $this->title; ?></h1>
				<?php echo $this->layout()->content;?>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div id="footer">
		&copy;AdminFoot&nbsp;
		<a href="
		<?php echo $this->url(array('controller' => 'index', 'action' => 'index'),  'default' ,true); ?>
		">Test</a>
	</div>
	</body>
</html>
